import { Button } from '@wordpress/components' import { __ } from '@wordpress/i18n' import { General } from '@extendify/api/General' import { useGlobalStore } from '@extendify/state/GlobalState' import { useUserStore } from '@extendify/state/User' export default function WelcomeNotice() { const setOpen = useGlobalStore((state) => state.setOpen) const disableLibrary = () => { const button = document.getElementById( 'extendify-templates-inserter-btn', ) button.classList.add('invisible') useUserStore.setState({ enabled: false }) setOpen(false) } return ( <> {__('Welcome to the Extendify Library', 'extendify')}
{window.extendifyData.standalone ? null : ( <> )}
) } {"code":"rest_no_route","message":"No route was found matching the URL and request method.","data":{"status":404}}